package com.fy.dao;

import com.fy.entity.Fy_class;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper
public interface Fy_classMapper {
    @Select("select * from fy_class")
    List<Fy_class> findAll();
    @Insert("INSERT into fy_class(class_id,`type`,fy_name,fy_intro,fy_pic) values (#{class_id},#{type},#{fy_name},#{fy_intro},#{fy_pic})")
    int insert_fy_class(@Param("class_id") String class_id,@Param("type") String type,
                        @Param("fy_name") String fy_name,@Param("fy_intro") String fy_intro,
                        @Param("fy_pic") String fy_pic);
}
